package utfpr.gang5.hermes.controledepresenca.rmi;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class Server {

	public static void main(String[] args) {
		try {  
			Registry registry = LocateRegistry.createRegistry(1099); 
			ControlePresencaService m = new ControlePresencaServiceImpl();  
            registry.rebind("ControlePresencaService", m);  
        }  
        catch( Exception e ) {  
            System.out.println( "Trouble: " + e );  
        }  
	}
}
